package com.libaiwen.dao;

import com.libaiwen.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//设计好与数据库相关的操作
public interface BookMapper {
    int addBook(Books books);
    int deleteBookById(int id);
    int updateBook(Books book);
    Books queryBookById(@Param("bookID") int id);
    List<Books> queryAllBooks();
}
